package com.songlanyun.modules.order.model.dto;

import com.songlanyun.common.drive.ValueObject;
import lombok.Data;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class UpdateOrderGoodsPriceDTO implements ValueObject
{
    /**
     * 订单id
     */
    @NotNull(message = "订单id不能为空")
    private  Long orderId;

    /**
     * 子订单id
     */
    @NotNull(message = "子订单id不能为空")
    private Long childOrderId;


    /**
     * 修改的价格
     */
    @DecimalMin(value = "0.01",message = "修改的价格最小是0.01")
    @DecimalMax(value = "99999999",message = "修改的价格最大值是99999999")
    private BigDecimal resultPrice;
}
